<template>
  <div class="recommend">
    <div class="recommendItem" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link"></a>
      <img :src="item.image" alt="" />
      <div>{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeRecommend",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
.recommend {
  display: flex;
}
.recommendItem {
  flex: 1;
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 20px 0 10px 0;
  border-bottom: 10px solid #eee;
}
.recommendItem > img {
  width: 75px;
  height: 75px;
  margin-bottom: 10px;
}
</style>